package org.zr;

import org.apache.dubbo.config.spring.util.DubboAnnotationUtils;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.zr.api.TestApi;

public class SpringConsumer {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DubboConsumerConfiguration.class);
        context.start();
        SpringConsumerService service = context.getBean(SpringConsumerService.class);
        System.out.println(service.getApi());
        System.out.println(service.getApi().helloWorld("zr"));
    }


}
